package com.tdkj.action.backstage.shop;

import java.util.List;

import javax.annotation.Resource;

import com.tdkj.action.BaseAction;
import com.tdkj.model.shop.BeanGoodRequestToBuy;
import com.tdkj.service.shop.IBeanGoodRequestToBuyService;


public class GoodRequestToBuyManageAction extends BaseAction {
    
	private IBeanGoodRequestToBuyService goodRequestToBuyService;
	
	
	private Long id;
	
	private List<BeanGoodRequestToBuy> goods ;
	
	
	public String execute() {
		goods = goodRequestToBuyService.findAll(BeanGoodRequestToBuy.class, "publishTime", "desc");
		return "success";
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the goods
	 */
	public List<BeanGoodRequestToBuy> getGoods() {
		return goods;
	}

	/**
	 * @param goods the goods to set
	 */
	public void setGoods(List<BeanGoodRequestToBuy> goods) {
		this.goods = goods;
	}

	/**
	 * @param goodRequestToBuyService the goodRequestToBuyService to set
	 */
	@Resource
	public void setGoodRequestToBuyService(
			IBeanGoodRequestToBuyService goodRequestToBuyService) {
		this.goodRequestToBuyService = goodRequestToBuyService;
	}
	
	

}
